package org.ldx.lotterysystem.common.errorcode;

public interface ServiceErrorCodeConstants {
    //------------------ 人员模块错误码----------------- 1
    ErrorCode REGISTER_ERROR = new ErrorCode(100,"注册信息为空");
    ErrorCode MAIL_ERROR = new ErrorCode(101,"邮箱格式非法");
    ErrorCode PHONE_ERROR = new ErrorCode(102,"电话号码格式非法");
    ErrorCode PASSWORD_ERROR = new ErrorCode(103,"密码格式非法");
    ErrorCode IDENTITY_ERROR = new ErrorCode(104,"身份信息非法");

    ErrorCode MAIL_USED_ERROR = new ErrorCode(105,"邮箱已被使用");
    ErrorCode NO_PASSWORD = new ErrorCode(106,"注册信息缺少密码");
    ErrorCode PHONE_NUMBER_USED_ERROR = new ErrorCode(107,"电话号码已被使用");

    ErrorCode LOGIN_ERROR = new ErrorCode(108,"登录参数错误");
    ErrorCode LOGIN_NOT_EXIT = new ErrorCode(109,"登录方式不存在");

    ErrorCode USER_INFO_IS_EMPTY  = new ErrorCode(110,"用户不存在");

    ErrorCode VERIFICATION_CODE_ERROR = new ErrorCode(111,"验证码错误");



//-----------------图片错误码--------------- 5
    ErrorCode PIC_UPLOAD_ERROR = new ErrorCode(500,"图片上传失败");

    //------------奖品错误码-----------   2


    //------------活动错误码----------   3
    ErrorCode CREATE_ACTIVITY_INFO_EMPTY = new ErrorCode(300,"创建的人员信息为空");
    ErrorCode ACTIVITY_USER_ERROR = new ErrorCode(301,"活动关联的人员异常");
    ErrorCode ACTIVITY_PRIZE_ERROR = new ErrorCode(302,"活动关联的奖品异常");

    ErrorCode ACTIVITY_USER_PRIZE_ERROR = new ErrorCode(303,"奖品关联的人员和奖品数量非法");
    ErrorCode PRIZE_TITERS_ERROR = new ErrorCode(304,"活动关联的奖品等级错误");

    ErrorCode ACTIVITY_CONVERT_ERROR = new ErrorCode(305,"活动相关状态转换失败");

    ErrorCode CACHE_ACTIVITY_ID_EMPTY = new ErrorCode(306,"要缓存的活动ID为空");

    ErrorCode CACHE_ACTIVITY_ID_ERROR = new ErrorCode(307,"要缓存的活动id有误");

    //------------抽奖错误码----------------- 4
    ErrorCode ACTIVITY_OR_PRIZE_NULL = new ErrorCode(400,"抽奖活动或获奖不存在");
    ErrorCode ACTIVITY_COMPLETED = new ErrorCode(401,"抽奖活动已完成，无法抽奖");
    ErrorCode PRIZE_COMPLETED = new ErrorCode(402,"当前奖品已经被抽取，无法抽奖");

    ErrorCode WINNER_PRIZE_ERROR = new ErrorCode(403,"奖品数量和中奖人数不一致，无法抽奖");

}
